home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9150 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.iadfw.net!usenet
  2. From: Mark Nelson <markn@airmail.net>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Borland library Q
  5. Date: Wed, 28 Feb 1996 18:19:18 -0600
  6. Organization: customer of Internet America
  7. Message-ID: <3134F106.3C08@airmail.net>
  8. References: <4h2lgs$te@darkstar.UCSC.EDU>
  9. NNTP-Posting-Host: dal09-22.ppp.iadfw.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
  14.  
  15. Ray Swartz wrote:
  16. > Here is what I did:
  17. > 1) wrote the routine in a .cpp file (getentry.cpp)
  18. > 2) compiled it to a .obj file
  19. > 3) ran the command: tlib raylib getentry
  20. > 4) added raylib.lib to my library path in the IDE (Options|Project|Linker)
  21. > 5) tried to compile a program needing getentry().
  22.  
  23. Hi Ray,
  24.  
  25. I use the Borland librarian a lot.  What you are doing looks
  26. more or less correct, (except it should be 'tlib raylib +getentry.obj')
  27. but there are a number of things you can do to check it out.
  28.  
  29. First, make sure raylib.lib exists.
  30.  
  31. Second, get a listing of the library contents by 
  32. doing this: 'tlib raylib,con'
  33.  
  34. Do you see that getentry.obj is in the lib?
  35. Do you see that getentry() is a public in the lib?
  36.  
  37. Third, make sure you aren't the victim of name mangling.  Is
  38. your program a C program looking for a C++ function?
  39.  
  40. Fourth, make sure you aren't a victing of upper/lower case
  41. confusion.  You should be doing a case sensitive compile and
  42. link for both programs.  
  43.  
  44. Finally, try building your same program from the command line:
  45.  
  46.    bcc test.cpp raylib.lib
  47.  
  48. Hope this helps.
  49.  
  50. Mark Nelson
  51. http://web2.airmail.net/markn
  52.